set -eux

proj_root=$(dirname $(realpath $0))
cd $proj_root

mkdir -p cache/

rsync -avz /go/pkg/mod/cache/ $proj_root/cache/

img_url='ccr.ccs.tencentyun.com/mkmk-common/ymk:go-demo-01'

docker build . -t  ccr.ccs.tencentyun.com/mkmk-common/ymk:go-demo-01  --progress plain
docker push ${img_url}
